package com.linkhouse.common.em;

public enum ResultEnum {
    SUCCESS(10000,"操作成功"),
    ERROR(10001,"操作失败"),
    ACCOUNT_ABSENCE(10002,"账号不存在"),
    PASSWORD_ERROR(10003,"密码错误"),
    NO_LOGIN(10004,"未登录"),
    ARGS_FAILE(10005,"参数错误"),
    HAVE_SUBSET(10006,"请先删除子集目录"),
    UNAUDITED(10007,"未审核"),
    UNAPPROVED(10008,"审核未通过"),
    SALEOVER(10009,"商品已售罄"),
    REQUEST_FALLBACK(10010,"限流了"),
    FEIGN_FALLBACK(10011,"OpentFeign调用失败");


    private Integer status;
    private String statusInfo;

    ResultEnum(Integer status, String statusInfo) {
        this.status = status;
        this.statusInfo = statusInfo;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStatusInfo() {
        return statusInfo;
    }

    public void setStatusInfo(String statusInfo) {
        this.statusInfo = statusInfo;
    }
}
